<?php


class CommonController extends BaseController{

   function __construct()
   {
        $this->checkLogin();
   }

   function checkLogin(){

       if(!$_SESSION['uid']){

           $this->redirect('user/login');
       }

   }
    

}

